<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/header.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DSP</title>
<%@include file="../common/link.jsp"%>
<script src="js/dsp.js"></script>
<script src="javascript?type=province"></script>
<script src="javascript?type=Com"></script>
<script src="javascript?type=selectTags"></script>
<script>
	var config = {
		url : 'insure_results_sub'
	}
	var colModel = [ {
		display : "ID",
		name : 'id',
		width : 10,
		align : 'center'
	}, {
		display : "计算年月",
		name : 'yearMonth',
		width : 60
	}, {
		display : "员工",
		name : 'empName',
		width : 80
	}, {
		display : "所属公司",
		name : "company",
		width : 100,
		render : function(cell, row, data, idx) {
			var val = '';
			for ( var i = 0; i < Com.length; i++) {
				if (cell == Com[i].id) {
					val = Com[i].value;
					break;
				}
			}
			return val;
		}
	}, {
		display : '户口性质',
		name : 'hukou',
		width : 50,
		render : function(cell, row, data, idx) {
			return selectTags["hukou_" + cell];
		}
	} ];

	var btnModel = [ {
		name : "",
		bclass : '',
		onpress : DSP.call
	} ];
	var searchModel = [ {
		display : "计算年月",
		name : 'yearMonth',
		width : 80
	}, {
		display : "员工",
		name : "empName",
		width : 80
	}, {
		display : '户口性质',
		name : 'hukou',
		width : 80
	} ];
</script>
</head>

<body>
	<table id="flexigrid" style="display: none;"></table>
	<script type="text/javascript">
		$(function() {
			DSP.open();
			DSP.grid(colModel, null, searchModel, 400, 400);
		});
	</script>

</body>
</html>
